home *** CD-ROM | disk | FTP | other *** search
- /*
- * $Header: constants.h,v 1.3 87/05/19 18:48:05 schoch Exp $
- */
-
- /* These next two constants are system dependent */
-
- /* file used for printing a file to the terminal (try /bin/pr) */
- #define PRINT_FILE "/usr/ucb/more"
- /* file where help will be kept */
- #define HELP_FILE "/usr/games/src/ks/help"
-
- #define ILLEGAL_PIECE -1
- #define ILLEGAL -1
- #define NOWAY -2
- #define AMBIGUOUS -3
- #define NOMOREPAWNTRIES -4
-
- #define UNSET 2
- #define RANDOM 3
- #define NIL 0
- #define MAXBUFF 100
-
- #define WHITE 0
- #define BLACK 1
- #define EMPTY 2
- #define OFFBOARD 3
-
- #define PAWN 1
- #define KING 2
- #define KNIGHT 3
- #define BISHOP 4
- #define ROOK 5
- #define QUEEN 6
-
- #ifdef XKS
- #define MESSAGE 0
- #define OPPONENT 0
- #define CHECK 1
- #define LEGAL 2
- #define INPUT 2
- #define CAPTURE 3
- #define TOMOVE 4
- #define PAWNTRIES 5
- #define MYCOLOR 6
- #define CLOCK 7
- #define PROMPT 8
- #else
- #define MESSAGE 0
- #define CHECK 1
- #define LEGAL 2
- #define CAPTURE 3
- #define TOMOVE 4
- #define PAWNTRIES 5
- #define MYCOLOR 6
- #define CLOCK 7
- #define PROMPT 8
- #define INPUT 9
- #define OPPONENT 10
- #endif
-
- #define NOPTIONS 3
- #define COLOR 0
- #define ANNOUNCETAKES 1
- #define ANNOUNCEPAWNS 2
-
- /* states */
- #define PLAYING 0
- #define OVER 1 /* game over */
- #define REVIEW 2 /* doing review */
-